﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace mBook.Models
{
    public class DownloadStatus : INotifyPropertyChanged
    {
        private String status;

        public String Status
        {
            get { return status; }
            set {status = value;
            OnPropertyChanged("Status");
            }
        }

        public DownloadStatus(String s)
        {
            status = s;
        }

        public DownloadStatus()
        {
           
        }

        public override string ToString()
        {
            return status;
        }

        public event PropertyChangedEventHandler PropertyChanged;

        protected void OnPropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler eventHandler = PropertyChanged;

            if (eventHandler != null)
            {
                eventHandler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
